package cn.ibobo.lease.admin.service.impl;

import cn.ibobo.lease.common.base.BaseMapper;
import cn.ibobo.lease.common.base.BaseServiceImpl;
import cn.ibobo.lease.admin.dao.UserDepositMapper;
import cn.ibobo.lease.admin.service.UserDepositService;
import cn.ibobo.lease.common.dto.UserDepositDTO;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * 用户押金记录表业务处理接口
 * @Author lililiang
 * @Date 2018-12-13 18:36:40
 */
@Service
public class UserDepositServiceImpl extends BaseServiceImpl<UserDepositDTO, String> implements UserDepositService {

    private static final Log LOGGER = LogFactory.getLog(UserDepositServiceImpl.class);

    @Autowired
    private UserDepositMapper mapper;

    @Override
    protected BaseMapper<UserDepositDTO, String> getMapper() {
        return mapper;
    }

    /**
     * 用户押金记录表列表
     * @Author lililiang
     * @Date 2018-12-13 18:36:40
     * @Param
     * @Return
     */
    @Override
    public List<UserDepositDTO> list4Page(UserDepositDTO entity, Integer pageNum, Integer... pageSize) {
        return super.list4Page(entity, pageNum, pageSize);
    }

    /**
     * 用户押金记录表列表（无分页）
     * @Author lililiang
     * @Date 2018-12-13 18:36:40
     * @Param
     * @Return
     */
    @Override
    public List<UserDepositDTO> listByCondition(UserDepositDTO entity) {
        return super.listByCondition(entity);
    }

    /**
     * 查询用户押金记录表详情信息
     * @Author lililiang
     * @Date 2018-12-13 18:36:40
     * @Param
     * @Return
     */
    @Override
    public UserDepositDTO queryOneByPk(String id) {
        return super.queryOneByPk(id);
    }

    /**
     * 保存用户押金记录表信息
     * @Author lililiang
     * @Date 2018-12-13 18:36:40
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer save(UserDepositDTO entity) {
        return super.save(entity);
    }

    /**
     * 删除用户押金记录表信息
     * @Author lililiang
     * @Date 2018-12-13 18:36:40
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer delete(String id) {
        return super.delete(id);
    }
}
